<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>博客系统</title>


    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
          integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <style>
        #user_icon {
            font-size: 18px;
            margin-right: 10px;
            vertical-align: -3px;
        }

        .pub-info {
            margin-top: 10px;
        }

        .pub-info .glyphicon-comment {
            vertical-align: -1px;
        }

        .contaner-e {
            width: 95%;
            margin: 0 auto;

        }
    </style>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">博客园</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">随笔 <span class="sr-only">(current)</span></a></li>
                <li><a href="#">新闻</a></li>
                <li><a href="#">博文</a></li>

            </ul>

            <ul class="nav navbar-nav navbar-right">

                <li><a href="/{{ request.user.username }}"><span id="user_icon"
                                                                 class="glyphicon glyphicon-user"></span>{{ request.user.username }}
                </a></li>
                <li class="dropdown">

                    {% if request.user.is_authenticated %}

                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                           aria-expanded="false">管理 <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">修改密码</a></li>
                            <li><a href="#">修改头像</a></li>
                            <li><a href="/logout/">注销</a></li>
                            <li><a href="/{{ request.user.username }}/manager">后台管理</a></li>
                            {#                        <li role="separator" class="divider"></li>#}
                            {#                        <li><a href="#">Separated link</a></li>#}
                        </ul>
                    {% else %}
                        <li><a href="/login/">登录</a></li>
                        <li><a href="/register/">注册</a></li>
                    {% endif %}

                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>

<div class="contaner contaner-e">
    <div class="row">
        <div class="col-md-3">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">分类</h3>
                </div>
                <div class="panel-body">
                    后端开发
                </div>
                <div class="panel-body">
                    前端开发
                </div>
                <div class="panel-body">
                    数据库开发
                </div>
            </div>
            <div class="panel panel-success">
                <div class="panel-heading">
                    <h3 class="panel-title">精华</h3>
                </div>
                <div class="panel-body">
                    解读容器的 2020：寻找云原生的下一站
                </div>
                <div class="panel-body">
                    Dapr 知多少 | 分布式应用运行时
                </div>
            </div>
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title">订阅</h3>
                </div>
                <div class="panel-body">
                    【最多推荐】我带的实习生，转正了。(7/22/2204) »
                </div>
                <div class="panel-body">
                    【最多评论】阿里P8面试官：如何设计一个扛住千万级并发的架构（超级详细）-续(10/6/1332) »
                </div>
            </div>
        </div>
        <div class="col-md-6">
            <div class="atricle_list">
                {% for article in article_list %}
                    <div class="article-item">
                        <h5><a href="/{{ article.user.username }}/articles/{{ article.nid }}">{{ article.title }}</a>
                        </h5>
                        <div class="article_des">
                        <span class="media-left">
                            <a href=""><img width="56" height="56" src="/media/{{ article.user.avatar }}" alt=""></a>
                        </span>
                            <span class="media-right">
                            {{ article.desc }}
                        </span>
                        </div>
                        <div class="small pub-info">
                            <span><a href="/{{ article.user.username }}">{{ article.user.username }}</a></span>&nbsp;&nbsp;&nbsp;
                            <span>发布于 &nbsp;&nbsp;{{ article.create_time|date:'Y-m-d H:i' }}</span>&nbsp;&nbsp;
                            <span class="glyphicon glyphicon-comment"></span>评论({{ article.comment_count }})&nbsp;&nbsp;
                            <span class="glyphicon glyphicon-thumbs-up"></span>点赞({{ article.up_count }})&nbsp;&nbsp;

                        </div>
                    </div>
                    <hr>

                {% endfor %}


            </div>


        </div>
        <div class="col-md-3">
            <div id="side_right" class="side-right card-list sidebar">
                <div id="cnblogs_b1" class="sidebar-image"><a
                        href="https://executive-ed.xpro.mit.edu/professional-certificate-coding/?utm_source=BKY&amp;utm_medium=CPS&amp;utm_campaign=E-MO-PCCO-21-12-12_BKY_CPS_PC_B1_1"
                        target="_blank"><img width="300" height="250" src="/static/img/22222.jpg"
                                             alt="MIT Professional Certificate in Coding"
                                             onclick="ga('send', 'event', 'Link', 'click', 'B1-优仕研习社');"></a></div>
                <div id="sidebar_bh" class="sidebar-bh">
                    <ul></ul>
                </div>
                <div class="card">
                    <h4 class="card-title">
                        <a href="/aggsite/topviews">48小时阅读排行</a>
                    </h4>
                    <ul class="item-list">
                        <li><span class="number highlight">1</span><a
                                href="https://www.cnblogs.com/thisiswhy/p/15420053.html" target="_blank"
                                onmouseover="set_a_title(this)" title="我带的实习生，转正了。">我带的实习生，转正了。</a></li>
                        <li><span class="number highlight">2</span><a
                                href="https://www.cnblogs.com/yudongdong/p/15418181.html" target="_blank"
                                onmouseover="set_a_title(this)" title="Fiddler抓包一键生成代码">Fiddler抓包一键生成代码</a></li>
                        <li><span class="number highlight">3</span><a
                                href="https://www.cnblogs.com/mic112/p/15420129.html" target="_blank"
                                onmouseover="set_a_title(this)" title="阿里P8面试官：如何设计一个扛住千万级并发的架构（超级详细）-续">阿里P8面试官：如何设计一个扛住千万级并发的架构（超级详细）-续</a>
                        </li>
                        <li><span class="number">4</span><a href="https://www.cnblogs.com/mic112/p/15416875.html"
                                                            target="_blank" onmouseover="set_a_title(this)"
                                                            title="阿里P8面试官：如何设计一个扛住千万级并发的架构？">阿里P8面试官：如何设计一个扛住千万级并发的架构？</a>
                        </li>
                        <li><span class="number">5</span><a
                                href="https://www.cnblogs.com/SivilTaram/p/semantic_parsing.html" target="_blank"
                                onmouseover="set_a_title(this)" title="不会SQL也能做数据分析？浅谈语义解析领域的机会与挑战">不会SQL也能做数据分析？浅谈语义解析领域的机会与挑战</a>
                        </li>
                        <li><span class="number">6</span><a href="https://www.cnblogs.com/bryan31/p/15420470.html"
                                                            target="_blank" onmouseover="set_a_title(this)"
                                                            title="一个理科直男如何看《鱿鱼游戏》">一个理科直男如何看《鱿鱼游戏》</a></li>
                    </ul>
                </div>
                <div class="card">
                    <h4 class="card-title">
                        <a href="/aggsite/topdiggs">10天推荐排行</a>
                    </h4>
                    <ul class="item-list">
                        <li><span class="number highlight">1</span><a
                                href="https://www.cnblogs.com/Java3y/p/15396099.html" target="_blank"
                                onmouseover="set_a_title(this)" title="面试官问我MySQL调优，我真的是">面试官问我MySQL调优，我真的是</a></li>
                        <li><span class="number highlight">2</span><a
                                href="https://www.cnblogs.com/huangxincheng/p/15391950.html" target="_blank"
                                onmouseover="set_a_title(this)" title="记一次 .NET 某电商定向爬虫 内存碎片化分析">记一次 .NET 某电商定向爬虫
                            内存碎片化分析</a></li>
                        <li><span class="number highlight">3</span><a
                                href="https://www.cnblogs.com/xiao2shiqi/p/15401920.html" target="_blank"
                                onmouseover="set_a_title(this)" title="保持高效学习的 7 个方法">保持高效学习的 7 个方法</a></li>
                        <li><span class="number">4</span><a href="https://www.cnblogs.com/yudongdong/p/15418181.html"
                                                            target="_blank" onmouseover="set_a_title(this)"
                                                            title="Fiddler抓包一键生成代码">Fiddler抓包一键生成代码</a></li>
                        <li><span class="number">5</span><a href="https://www.cnblogs.com/strick/p/15223931.html"
                                                            target="_blank" onmouseover="set_a_title(this)">跳槽一年后的回顾</a>
                        </li>
                        <li><span class="number">6</span><a href="https://www.cnblogs.com/xiaoxiaotank/p/15391905.html"
                                                            target="_blank" onmouseover="set_a_title(this)"
                                                            title="理解ASP.NET Core - 选项(Options)">理解ASP.NET Core -
                            选项(Options) </a></li>
                    </ul>
                </div>
                <div id="cnblogs_b2" class="sidebar-image">
                    <div id="div-gpt-ad-1539007469525-0" style="height:250px; width:300px;"
                         data-google-query-id="CLXciYay1fMCFUMylgodXwIAHA">

                        <div id="google_ads_iframe_/1090369/B2_0__container__" style="border: 0pt none;">
                            <iframe id="google_ads_iframe_/1090369/B2_0" title="3rd party ad content"
                                    name="google_ads_iframe_/1090369/B2_0" width="300" height="250" scrolling="no"
                                    marginwidth="0" marginheight="0" frameborder="0" srcdoc=""
                                    style="border: 0px; vertical-align: bottom;" data-google-container-id="3"
                                    data-load-complete="true"></iframe>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
</div>

<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"
        integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"
        crossorigin="anonymous"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
        integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
        crossorigin="anonymous"></script>
</body>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>

</html>